package com.guli.edusta.client;

import com.guli.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component // 交给Spring管理
@FeignClient("edu-ucenter") // 你要调用谁就把谁的properties里的name拿过来放进括号引号里，O了
public interface UcenterClient {

    //定义方法，调用ucenter方法controller的路径
    // 统计某一天的注册人数
    @GetMapping("/educenter/member/countRegister/{day}")
    public Result countRegisterNum(@PathVariable("day") String day);

}
